import schemdraw
import schemdraw.elements as elm

d = schemdraw.Drawing()
d += elm.Resistor().label('100KΩ')
d += elm.Capacitor().down().label('0.1μF', loc='bottom')
d += elm.Line().left()
d += elm.Ground()
d += elm.Button().up().label('10V')

'''
d += elm.Line().left()
d += elm.Ground()
d += elm.SourceV().up().label('10V')

R = d.add(elm.Resistor())
Q = d.add(elm.Diode().down().length(6))
d.add(elm.Line().left().tox(R.start))
d.add(elm.Capacitor().up().toy(R.start))
d.add(elm.SourceV().endpoints(Q.end, R.start))
'''
d.draw()
